 import QtQuick 1.0
 import QtCommercial.Chart 1.2

    ChartView {
        title: "告警紧急度分布饼图"
        theme: ChartView.ChartThemeBlueCerulean
        legend.alignment: Qt.AlignRight

        PieSeries {
            id: pieSeries
            objectName: "pie"
            PieSlice { objectName: "urgency"; label: "紧急"; value: 10}
            PieSlice { objectName: "importance"; label: "重要"; value: 30}
        }
    }
